package com.ruoyi.system.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/** 前端展示用的帖子数据传输对象 */
@ApiModel(value = "PostsDTO", description = "帖子响应DTO")
@Data
public class PostsDTO {
    @ApiModelProperty("主键ID")
    private Long id;
    @ApiModelProperty("用户ID")
    private String userId;
    @ApiModelProperty("用户名")
    private String userName;
    @ApiModelProperty("用户头像")
    private String avatar;
    @ApiModelProperty("帖子内容")
    private String content;
    @ApiModelProperty("图片数组")
    private List<String> images;
    @ApiModelProperty("标签数组")
    private List<String> tags;
    @ApiModelProperty("位置")
    private String location;
    @ApiModelProperty("可见范围")
    private Integer visibility;
    @ApiModelProperty("状态")
    private Integer status;
    @ApiModelProperty("点赞数量")
    private Integer likeCount;
    @ApiModelProperty("评论数量")
    private Integer commentCount;
    @ApiModelProperty("分享数量")
    private Integer shareCount;
    @ApiModelProperty("打赏次数")
    private Integer rewardCount;
    @ApiModelProperty("打赏金额")
    private BigDecimal rewardAmount;
    @ApiModelProperty("是否置顶")
    private Boolean isTop;
    @ApiModelProperty("审核状态")
    private Integer auditStatus;
    @ApiModelProperty("审核原因")
    private String auditReason;
    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("更新时间")
    private Date updateTime;
    @ApiModelProperty(value = "媒体类型：1图片/2视频")
    private Integer mediaType;
}
